<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<c:set var="nature_value">
	<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_value" />
</c:set>
<div class="t_bar">

	项目基本情况
</div>
<table class="t_css" id="basic_tab" width="100%" border="0" cellpadding="0" cellspacing="1">
	<col style="width: 20%" />
	<col style="width: 20%" />
	<col style="width: 20%" />
	<col style="width: 20%" />
	<col style="width: 20%" />
	<tr >
		<td align="right"><span class="color_red">*</span>机构名称：</td>
		<td colspan="2">
			<input type="text" name="proposal/zh_title" id="zh_title" style="width: 82%;" class="required" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title"/>" label="机构名称">
		</td>
		<td align="right" colspan="1"><span class="color_red">*</span>成立日期：</td>
		<td>
			<c:set var="establishmen_date">
				<x:out select="$xmlData/data/proposal/establishmen_date" />
			</c:set>
			<cpt:date id="apply_date_curr12" name="proposal/establishmen_date" value="${establishmen_date}" className="required date" label="成立日期" ></cpt:date>
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>归口管理单位：</td>
		<td colspan="2">
			<c:set var="recomend_org">{'id':'<x:out select="$xmlData/data/proposal/recomend_org_value" />','name':'<x:out select="$xmlData/data/proposal/recomend_org_name" />'}</c:set>
			<cpt:tree key="recommended_org" cacheable="false" className="hn_iuput_kuang " readonly="true" value="${recomend_org}"  id="recomend_org" showPattern="all" shieldPattern="0"
				topCheckbox="false" onClick="initTreeValueExt" />
			<input type="hidden" id="recomend_org_value" name="proposal/recomend_org_value" style="width: 80%;" class="required" value="<x:out select="$xmlData/data/proposal/recomend_org_value" />" label="归口管理单位">
			<input type="hidden" name="proposal/recomend_org_name" style="width: 80%;" value="<x:out select="$xmlData/data/proposal/recomend_org_name" />">
		</td>
		<td align="right"><span class="color_red">*</span>申报日期：</td>
		<td>
			<c:set var="submit_date">
				<x:out select="$xmlData/data/proposal/submit_date" />
			</c:set>
			<cpt:date id="apply_date_curr" name="proposal/submit_date" value="${submit_date}" className="required date" label="申报日期" ></cpt:date>
		</td>
    </tr>
	<tr >
		<td align="right"><span class="color_red">*</span>机构类型：</td>
     <td colspan="4">
			<c:set var="institutional_type_value">
				<x:out select="$xmlData/data/proposal/institutional_type_value" />
			</c:set>
			<c:set var="institutional_type_other">
				<x:out select="$xmlData/data/proposal/institutional_type_other" />
			</c:set>
			<cpt:checkbox key="institutional_type" tagType="radio" name="institutional_type"
						  width="25%" repeatColumn="4" value="${institutional_type_value }"
						  lastOther="true" otherId="institutional_type_other"
						  otherValueName="${institutional_type_other }"></cpt:checkbox>
			<input type="text" id="institutional_type_other"
				   name="proposal/institutional_type_other" maxlength="50"
				   style="border: none; border-bottom: 1px solid gray; width: 100px;"
				   label="机构类型-->其他"
				   value="<x:out select="$xmlData/data/proposal/institutional_type_other"/>" />
			<input type="hidden" id="institutional_type_value"
				   name="proposal/institutional_type_value" class="required"
				   value="${institutional_type_value}" label="机构类型">
			<input type="hidden" name="proposal/institutional_type_name"
				   value="<x:out select="$xmlData/data/proposal/institutional_type_name" />">
	</td>
	</tr>
	<tr>
		<td align="right">注册地址：</td>
		<td colspan="2">
			<span name="organizations/organization/address"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/address" /></span>
		</td>
		<td align="right">统一社会<br/>信用代码：</td>
		<td >
			<span name="organizations/organization/org_shxy_no"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_shxy_no"/></span>
		</td>

	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>法人类型：</td>
		<td colspan="4">
			<cpt:checkbox key="faren_type1" name="faren_type" onClick="changefaren" repeatColumn="4" className="input_css required " value="${faren_type }" tagType="radio" style="border: 0px; padding: 0px; margin: 0px;" ></cpt:checkbox>
			<input type="hidden" name="proposal/faren_type_value" id="faren_type_value" value="<x:out select="$xmlData/data/proposal/faren_type_value" />" class="required" label="法人类型"/>
			<input type="hidden" name="proposal/faren_type_name" value="<x:out select="$xmlData/data/proposal/faren_type_name" />" />
		</td>
	</tr>

	<tr >
		<td align="right" rowspan="2">法人代表：</td>
		<td align="right">姓名：</td>
		<td >
			<span name="proposal/cname"><x:out select="$xmlData/data/organization_persons/person[@sequence_no='1']/cname"/></span>
		</td>
		<td align="right">职务：</td>
		<td >
			<span name="proposal/position"><x:out select="$xmlData/data/organization_persons/person[@sequence_no='1']/position"/></span>
		</td>

	</tr>
	<tr>
		<td align="right">办公电话：</td>
		<td >
			<span name="proposal/tel"><x:out select="$xmlData/data/organization_persons/person[@sequence_no='1']/tel"/></span>
		</td>
		<td align="right">手机：</td>
		<td>
			<span name="proposal/mobile"><x:out select="$xmlData/data/organization_persons/person[@sequence_no='1']/mobile"/></span>
		</td>
	</tr>
	<tr >
		<td align="right" rowspan="3">联系人：</td>
		<td align="right">姓名：</td>
		<td >
			<span name="proposal/fzr_psnname"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name"/></span>
		</td>
        <td align="right">手机：</td>
        <td >
            <span name="proposal/fzr_mobile"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile"/></span>
        </td>


	</tr>
	<tr>
        <td align="right">职务：</td>
        <td>
            <span name="proposal/fzr_position"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/position"/></span>
        </td>
		<td align="right">QQ号：</td>
		<td >
			<span name="proposal/fzr_qq"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/qq"/></span>
		</td>
	</tr>
	<tr>
		<td align="right">电子邮箱：</td>
		<td>
			<span name="proposal/fzr_email"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email"/></span>
		</td>
		<td align="right">联系电话：</td>
		<td >
			<span name="proposal/fzr_tel"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work"/></span>
		</td>
	</tr>
	<tr align="center">
		<td rowspan="4"><span class="color_red">*</span>人员情况</td>
		<td >员工总数（人）</td>
		<td>
			<input id="people_all" name="proposal/all_people" label="人员情况-->员工总数" onfocus="InitInput.setNumber(this,9,0,0)" onchange="checkjsjjr()" type="text"  class="input_css  required"  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/all_people" />"/>
		</td>
		<td >兼职专家（人）</td>

		<td align="" >
			<input id="people_expert" name="proposal/expert_people" onchange="checkjsjjr()"label="人员情况-->兼职专家" onfocus="InitInput.setNumber(this,9,0,0)" type="text"  class="input_css required valueGreatEqual:people_all:people_expert"  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/expert_people" />"/>
		</td>
	</tr>
	<tr align="center">
		<td >大学本科及以上（人）</td>
		<td>
			<input id="people_undergraduate" name="proposal/undergraduate_people" onchange="checkjsjjr()"    label="人员情况-->大学本科及以上" onfocus="InitInput.setNumber(this,9,0,0)" type="text"  class="input_css required valueGreatEqual:people_all:people_undergraduate"  style="width:80%; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/undergraduate_people" />"/>
		</td>
		<td >占总人数比例（%）</td>
		<td align="" >
			<input id="undergraduate_proportion" name="proposal/undergraduate_proportion" label="人员情况-->占总人数比例" type="text" disabled="disabled" onfocus="InitInput.setNumber(this,9,2,2)"  class="input_css  gray"  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/undergraduate_proportion" />"/>
		</td>
	</tr>
	<tr align="center">
		<td >中级职称及以上（人）</td>
		<td >
			<input id="people_intermediate" name="proposal/intermediate_people" onchange="checkjsjjr()"     label="人员情况-->中级职称及以上" type="text" onfocus="InitInput.setNumber(this,9,0,0)" class="input_css required valueGreatEqual:people_all:people_intermediate"  style="width:80%; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/intermediate_people" />"/>
		</td>
		<td >占总人数比例（%）</td>
		<td align="" >
			<input id="intermediate_proportion" name="proposal/intermediate_proportion" label="人员情况-->占总人数比例" disabled="disabled" type="text" onfocus="InitInput.setNumber(this,9,2,2)" class="input_css  gray"  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/intermediate_proportion" />"/>
		</td>
	</tr>
	<tr align="center">
		<td >技术经纪人数量（人）</td>
		<td >
			<input id="people_jsjjr" name="proposal/jsjjr_people" onchange="checkjsjjr()"     label="人员情况-->技术经纪人数量" type="text" onfocus="InitInput.setNumber(this,9,0,0)" class="input_css required valueGreatEqual:people_all:people_jsjjr"  style="width:80%; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/jsjjr_people" />"/>
		</td>
		<td >占总人数比例（%）</td>
		<td align="" >
			<input id="jsjjr_proportion" name="proposal/jsjjr_proportion" label="人员情况-->占总人数比例" disabled="disabled" type="text" onfocus="InitInput.setNumber(this,9,2,2)" class="input_css  gray"  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/jsjjr_proportion" />"/>
		</td>
	</tr>
	<tr align="center">
		<td rowspan="3"><span class="color_red">*</span>科技创新服务</td>
		<td >为企业诊断技术问题数量（项）</td>
		<td colspan="3">
			<input id="technologies_number" name="proposal/technologies_number" label="科技创新服务-->为企业诊断技术问题数量" onfocus="InitInput.setNumber(this,9,0,0)"  type="text"  class="input_css  required"  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/technologies_number" />"/>
		</td>
	</tr>
	<tr align="center">

		<td >为企业挖掘创新需求数量（项）</td>

		<td align="" colspan="3">
			<input id="quantity_demand" name="proposal/quantity_demand " label="科技创新服务-->为企业挖掘创新需求数量" onfocus="InitInput.setNumber(this,9,0,0)" type="text"  class="input_css required "  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/quantity_demand" />"/>
		</td>
	</tr>
	<tr align="center">
		<%--<td >开展科技成果对接数量（项）</td>
		<td>
			<input id="docking_number" name="proposal/docking_number"    label="科技创新服务-->开展科技成果对接数量" onfocus="InitInput.setNumber(this,9,0,0)" type="text"  class="input_css required "  style="width:80%; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/docking_number" />"/>
		</td>--%>
		<td >向企业推介科技人才数量（人次）</td>
		<td align="" colspan="3">
			<input id="talents_number" name="proposal/talents_number" label="科技创新服务-->向企业推介科技人才数量" type="text"  onfocus="InitInput.setNumber(this,9,0,0)"  class="input_css required"  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/talents_number" />"/>
		</td>
	</tr>

	<tr align="center">
		<td rowspan="2"><span class="color_red">*</span>政策咨询服务</td>
		<td >向企业提供政策咨询、服务项目数（编写项目申报材料除外）（项）</td>
		<td>
			<input id="services_number" name="proposal/services_number" label="政策咨询服务-->向企业提供政策咨询、服务项目数" onfocus="InitInput.setNumber(this,9,0,0)"  type="text"  class="input_css  required"  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/services_number" />"/>
		</td>
		<td >为企业提供科技创新培训服务（人次）</td>

		<td align="" >
			<input id="standard_number" name="proposal/standard_number " label="政策咨询服务-->为企业提供科技创新培训服务" onfocus="InitInput.setNumber(this,9,0,0)" type="text"  class="input_css required "  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/standard_number" />"/>
		</td>
	</tr>
	<tr align="center">
		<td >提供专利、标准等知识产权服务数（项）</td>
		<td>
			<input id="cognizance_number" name="proposal/cognizance_number" label="政策咨询服务-->提供专利、标准等知识产权服务数" onfocus="InitInput.setNumber(this,9,0,0)"  type="text"  class="input_css  required"  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/cognizance_number" />"/>
		</td>
		<td >开展政产学研用金对接活动（场次）</td>

		<td align="" >
			<input id="activities_number" name="proposal/activities_number " label="政策咨询服务-->开展政产学研用金对接活动" onfocus="InitInput.setNumber(this,9,0,0)" type="text"  class="input_css required "  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/activities_number" />"/>
		</td>
	</tr>

	<tr align="center">
		<td ><span class="color_red">*</span>评估评价服务</td>
		<td >技术评估项目数（项）</td>
		<td>
			<input id="evaluation_number" name="proposal/evaluation_number" label="评估评价服务-->技术评估项目数" onfocus="InitInput.setNumber(this,9,0,0)"  type="text"  class="input_css  required"  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/evaluation_number" />"/>
		</td>
		<td >科技成果评价项目数（项）</td>

		<td align="" >
			<input id="evaluate_number" name="proposal/evaluate_number " label="评估评价服务-->科技成果评价项目数" onfocus="InitInput.setNumber(this,9,0,0)" type="text"  class="input_css required "  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/evaluate_number" />"/>
		</td>
	</tr>



	<tr align="center">
		<td rowspan="2"><span class="color_red">*</span>技术交易服务</td>
		<td >促进供需双方合作项目数（项）</td>
		<td>
			<input id="cooperation_number" name="proposal/cooperation_number" label="技术交易服务-->促进供需双方合作项目数" onfocus="InitInput.setNumber(this,9,0,0)"  type="text"  class="input_css  required"  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/cooperation_number" />"/>
		</td>
		<td >促进技术合作交易成交额（万元）</td>
		<td align="" >
			<input id="cooperation_money" name="proposal/cooperation_money " label="技术交易服务-->促进技术合作交易成交额" onfocus="InitInput.setNumber(this,9,2,2)" type="text"  class="input_css required "  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/cooperation_money" />"/>
		</td>
	</tr>
	<tr align="center">
		<td >促成投融资服务项目数（项）</td>
		<td>
			<input id="financing_number" name="proposal/financing_number" label="技术交易服务-->促成投融资服务项目数" onfocus="InitInput.setNumber(this,9,0,0)"  type="text"  class="input_css  required"  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/financing_number" />"/>
		</td>
		<td >促成投融资服务项目金额（万元）</td>

		<td align="" >
			<input id="financing_money" name="proposal/financing_money " label="技术交易服务-->促成投融资服务项目金额" onfocus="InitInput.setNumber(this,9,2,2)" type="text"  class="input_css required "  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/financing_money" />"/>
		</td>
	</tr>

	<tr align="center">
		<td ><span class="color_red">*</span>综合服务业绩</td>
		<td >上一年服务企业数（家）</td>
		<td>
			<input id="enterprise_number" name="proposal/enterprise_number" label="综合服务业绩-->上一年服务企业数" onfocus="InitInput.setNumber(this,9,0,0)"  type="text"  class="input_css  required"  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/enterprise_number" />"/>
		</td>
		<td >上一年科技服务收入（万元）</td>

		<td align="" >
			<input id="enterprise_money" name="proposal/enterprise_money " label="综合服务业绩-->上一年科技服务收入" onfocus="InitInput.setNumber(this,9,2,2)" type="text"  class="input_css required "  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/enterprise_money" />"/>
		</td>
	</tr>
</table>
<div class="t_bar">经营条件（限0-10条）</div>
<table class="t_css" id="basic_tab1" width="100%" border="0" cellpadding="0" cellspacing="1">
	<col style="width: 20%" />
	<col style="width: 30%" />
	<col style="width: 20%" />
	<col style="width: 30%" />
	<tr align="center">
		<td ><span class="color_red">*</span>办公面积(平米)</td>
		<td>
			<input id="office_area" name="proposal/office_area" label="经营条件-->办公面积" onfocus="InitInput.setNumber(this,9,2,2)"  type="text"  class="input_css  required"  style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/office_area" />"/>
		</td>
		<td ><span class="color_red">*</span>网站域名</td>
		<td >
			<input id="domain_name" name="proposal/domain_name " label="经营条件-->网站域名"  type="text"  class="input_css required "  style="width:80%;" maxlength="50" value="<x:out select="$xmlData/data/proposal/domain_name" />"/>
		</td>
	</tr>
	<tr align="center">
		<td ><span class="color_red">*</span>专家库（人）</td>
		<td>
			<input id="zjk" name="proposal/zjk" label="经营条件-->专家库" onfocus="InitInput.setNumber(this,9,0,0)"  type="text"  class="input_css  required"
				   style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/zjk" />"/>
		</td>
		<td ><span class="color_red">*</span>成果库（条）</td>
		<td >
			<input id="cgk" name="proposal/cgk " label="经营条件-->成果库" onfocus="InitInput.setNumber(this,9,0,0)" type="text"  class="input_css required "  style="width:80%;"
				   maxlength="50" value="<x:out select="$xmlData/data/proposal/cgk" />"/>
		</td>
	</tr>
	<tr align="center">
		<td ><span class="color_red">*</span>政策库（条）</td>
		<td>
			<input id="zck" name="proposal/zck" label="经营条件-->政策库" onfocus="InitInput.setNumber(this,9,0,0)" type="text"  class="input_css  required"
				   style="width:80%;text-align: right; text-align: right;" maxlength="50" value="<x:out select="$xmlData/data/proposal/zck" />"/>
		</td>
		<td ><span class="color_red">*</span>自有服务工具（个）</td>
		<td >
			<input id="zyfwgj" name="proposal/zyfwgj " label="经营条件-->自有服务工具" onfocus="InitInput.setNumber(this,9,0,0)" type="text"  class="input_css required "
				   style="width:80%;" maxlength="50" value="<x:out select="$xmlData/data/proposal/zyfwgj" />"/>
		</td>
	</tr>
</table>
<table id="operating_conditions" border="0" cellspacing="0" cellpadding="0" style="width: 100%" class="table01 t_css">
	<thead>
		<tr>
			<th align="center" width="10%">选择</th>
			<th align="center" width="10%">序号</th>
			<th align="center" width="40%">数据库名称</th>
			<th align="center" width="40%">数据数量（条）</th>
		</tr>
	</thead>
	<tbody id="operating_condition_tab">
		<tr style="display: none" align="center">
			<td align="center">
				<input type="radio" class="radiobutton" name="selAttendOrg11">
			</td>
			<td align="center">
				<span name="operating_conditions|operating_condition[0]@seq_no">[index]</span>
			</td>
			<td align="center">
				<input name="operating_conditions|operating_condition[0]|database_name" label="数据库名称" type="text"  class="input_css required "  style="width: 80%;" maxlength="50" value="" />
			</td>

			<td align="center">
				<input name="operating_conditions|operating_condition[0]|data_number" label="数据数量" type="text"  class="input_css required " style="width: 80%;text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="" />
			</td>
		</tr>
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/operating_conditions/operating_condition" var="operating_condition">

			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr align="center">
				<td>
					<input type="radio" class="radiobutton" name="selAttendOrg11">
				</td>
				<td align="center">
					<span name="operating_conditions/operating_condition[${flag}${index}]@seq_no">
						<x:out select="$operating_condition/@seq_no" />
					</span>
				</td>
				<td>
					<input name="operating_conditions/operating_condition[${flag}${index}]/database_name" label="数据库名称" type="text"   class="input_css required " style="width: 80%;" maxlength="50"
						value="<x:out select="$operating_condition/database_name" />" />
				</td>

                <td>
                    <input name="operating_conditions/operating_condition[${flag}${index}]/data_number" label="数据数量" type="text" onfocus="InitInput.setNumber(this,9,0,0)"  class="input_css required " style="width: 80%;text-align: right"
                           value="<x:out select="$operating_condition/data_number" />" />
                </td>
			</tr>
			<c:set var="beggerClass"></c:set>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
</table>

<table width="98%" class="not_table">
	<tr>
		<td>
			<input class="button_02" type="button" name="cmdAddbefore" value="添加" onclick="if(checkTabLimit('operating_conditions',10,'经营条件信息最多只能填写10条')){addNewRow('operating_conditions');}try{top.resizeFrame();}catch(e){};checkrownum();getLen()" />
			<input class="button_02" name="cmdMovePrev" type="button" value="上移" onclick="movePrev('operating_conditions');checkrownum()" />
			<input class="button_02" name="cmdMoveNext" type="button" value="下移" onclick="moveNext('operating_conditions');checkrownum()" />
			<input class="button_02" name="cmddel" type="button" value="删除" onclick="deleteSelectedRow('operating_conditions','经营条件信息');checkrownum();getLen()" />
		</td>
	</tr>
</table>

<div class="t_bar"><span class="color_red">*</span>主营业务（限500字）</div>
<table id="tblMileStones0" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
				<col style="width:34%"/>
				<col style="width:40%"/>
				<col style="width:13%"/>
				<col style="width:13%"/>
				<tr>
					<td colspan="4">
						<textarea name="proposal/main_business"  class="input_textarea required maxlength:500" label="主营业务" rows=5 style="width:98%"><x:out select="$xmlData/data/proposal/main_business" /></textarea>
						<input type="hidden" name="proposal/main_business_hidden" id="proposal/main_business_hidden" value="<x:out select="$xmlData/data/proposal/main_business" />"/>
					</td>
				</tr>
</table>
<input type="hidden" id="if_have_org" name="proposal/if_have_org">
<input type="hidden" id="row_number" name="proposal/row_number">
<input type="hidden" name="proposal/cooperation_units" id="cooperation_units" value="<x:out select='$xmlData/data/proposal/cooperation_units'/>"/>
<script type="text/javascript">

	$(function(){
		industrial_enterprise();
		getLen();
		checkrownum();
		$("#tab1").click();
		$("#fragment-tab1 :text,#fragment-tab1 [type='date']").addClass("input_width");
		$("#fragment-tab1 select").addClass("select_width");
		/*$("table.t_css").each(function(){
			$(this).find("tr").not(".cbTable tr").filter(":even").addClass("li_1");
			$(this).find("tr").not(".cbTable tr").filter(":odd").addClass("li_2");
		});*/
	});

	$(document).ready(function(){
		compare_age();
		industrial_enterprise();
		if($('input:checkbox[name="enterprise_scale"]:checked').val()=="中小企业"){
			$("#technologyEnterprise").removeAttr("disabled");
		}else{
			$("#technologyEnterprise").attr("disabled",true);
		}
	});
	$("table").addClass("table01");
	$("#checkbox_table_").removeClass("table01");
	$("#feaReport_upload").removeClass("table01");
	$('div').find("[id^='checkbox_dyn_']").find("td").css("border",'0px solid');
	function initTreeValueExt(treeId, treeNode) {
		if ((treeNode && treeNode.isParent)) {
			scmWarn("请选择具体的" + $("#" + treeId).attr("label"));
			$("#" + treeId).val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
			return false;
		}
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			str = obj.name + "-" + str;
			obj = obj.parentNode;
		}

		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
	}

/*
function initControlValue(objId){

	    var name="";
	    var obj=$("#"+objId);
	    if(obj.is("select")){
	        name=obj.attr("name");
	        obj.parent().children("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).find("option:selected").val());
	        $("#"+objId).parent().children("input[name$='"+name+"_name']").val($("#"+objId).find("option:selected").text());
	    }

	    else if(obj.is(":radio")){
	        name=obj.attr("name");
	        if(obj.is(":checked")){//如果被选中
	            //alert($("#"+objId).val());
	            obj.parents("table").find("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).val());
	            $("#"+objId).parent().children("input[name$='"+name+"_name']").val($("#"+objId).next().text());
	        }
	        else{

	            obj.parents("table").find("input[name$='"+name+"_value'][type='hidden']").val("");
	        }
	    }else if(obj.is(":checkbox")){
	        name=obj.attr("name");
	        if(obj.is(":checked"))//如果被选中
	            obj.parent().find("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).val());
	        else
	            obj.parent().find("input[name$='"+name+"_value'][type='hidden']").val("");
	    }else{
	        name=obj.attr("id");
	        obj.parents("td").find("input[name$='"+name+"_name'][type='hidden']").val(obj.val());
	        obj.parents("td").find("input[name$='"+name+"_code'][type='hidden']").val($("#"+objId+"_hideId").val());
	    }
	}
*/

	function synchronizationAmount1(){
		var built_institute=$("#built_institute").val();
		if(built_institute !=  ""){
			$("span[id='built_institute_[00]']").html($("#built_institute").val());
			/*$("#total_fund_18").val(parseFloat($("#request_amount").val()).toFixed(2));*/
		}else if(built_institute ==  ""){
			$("input[id='built_institute_[00]']").html("");
		}
	}
	function setCooperationUnits(){
		var cooperation_units="";
		$("#operating_condition tr:gt(1)").each(function(index){
			var cooperation_unit = $(this).find("td:eq(2) input").val().trim();
			/*var orgName = $("#org_name").val().trim();*/
			var orgName = $('span[name$="organizations/organization/org_name"]').html()
			if(!isBlankOrNull(cooperation_unit) && cooperation_unit!=orgName){
				cooperation_units += cooperation_unit+",";
			}
			/* if(!isBlankOrNull(cooperation_unit)){
                 cooperation_units += cooperation_unit+",";
             }*/
		});
		if(cooperation_units!=""){
			cooperation_units=cooperation_units.substring(0,cooperation_units.length-1);
		}
		$("#cooperation_units").val(cooperation_units);
	}
	/***
	 * 勾选中小型企业框时打开科技型中小企业选择
	 * 没有勾选时关闭科技型中小企业选择，并清除隐藏域的值
	 *
	 */
	function removeDisabled(){
		if($('input:checkbox[name="enterprise_scale"]:checked').val()=="中小企业"){
			$("#technologyEnterprise").removeAttr("disabled");
		}else{
			$("#technologyEnterprise").removeAttr("checked");
			$("#technology_enterprise_value").val("");
			$("#technologyEnterprise").attr("disabled",true);
		}
	};
	function initTreeValueExt(treeId, treeNode) {
		if (!(treeNode && (treeNode.level > 0 || !treeNode.isParent))) {
			scmWarn($("#" + treeId).attr("label") + messageTip.researchAreaInvalidDisciplineCode);
			if (treeNode.level == 0) {
				$("#" + treeId).val("");
				$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val("");
				$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId+ "_value']").val("");
				$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val("");
			}
			return false;
		}
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			obj = obj.parentNode;
		}
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId+ "_value']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val(str);
	}
	function compare_age() {
		var end_date = $("#age_end_date").val();
		var birthday = $("#fzbirthday").val();

		var end_date_year = Number(end_date.substring(0,4));
		var birthday_year = Number(birthday.substring(0,4));

		var end_date_month = Number(end_date.substring(5,7));
		var birthday_month = Number(birthday.substring(5,7));

		var end_date_day = Number(end_date.substring(8));
		var birthday_day = Number(birthday.substring(8));

		var different_value = end_date_year - birthday_year -57;
		var different_value1 = end_date_month - birthday_month;
		var different_value2 = end_date_day - birthday_day;

		if(different_value > 0 || (different_value == 0 && different_value1 > 0 )  || (different_value == 0 && different_value1 == 0  && different_value2 > 0)){
			$("#age").val(1);
		}else{
			$("#age").val(0);
		}
		//onchangeType2();

	}

	/*$("#industrial_enterprise_value").onchange(function(industrial_enterprise){
		var industrial_enterprise_value = $("#industrial_enterprise_value").val();
		if(industrial_enterprise_value==1){
			$("#industrial_value").val(1);
		}else{
			$("#industrial_value").val(0);
		}
	});*/

	function industrial_enterprise() {
		var industrial_enterprise_value = $("#industrial_enterprise_value").val();
		if(industrial_enterprise_value==0){
			$("#industrial_value").val(1);
		}else if(industrial_enterprise_value==1){
			$("#industrial_value").val(0);
		}else {
			$("#industrial_value").val("");
		}

	}
	function getLen() {
		var len=$("#operating_condition tr:gt(1)").length;
		if(len>=2){
			$("#if_have_org").val("1");
		}else{
			$("#if_have_org").val("0");
		}
	}
	function checkjsjjr(){

		var people_all=$('#people_all').val();
		var people_technology=$('#people_technology').val();
		var people_expert=$('#people_expert').val();
		var people_undergraduate=$('#people_undergraduate').val();
		var people_intermediate=$('#people_intermediate').val();
		var jsjjr_people=$('#people_jsjjr').val();

		$('#technology_proportion').val(formatVal((people_technology / people_all)*100));
		$('#expert_proportion').val(formatVal((people_expert / people_all)*100));
		$('#undergraduate_proportion').val(formatVal((people_undergraduate / people_all)*100));
		$('#intermediate_proportion').val(formatVal((people_intermediate / people_all)*100));
		$('#jsjjr_proportion').val(formatVal((jsjjr_people / people_all)*100));

	}
	function checkjsjjr1(){

		var income_technical=$('#income_technical').val();
		var income_totals=$('#income_totals').val();


		$('#technical_income_proportion').val(formatVal((income_technical / income_totals)*100));

	}
	function checkjsjjr2(){


		var profit_tax_money=$('#profit_tax_money').val();

		var income_totals=$('#income_totals').val();


		$('#profit_tax_proportion').val(formatVal((profit_tax_money / income_totals)*100));

	}
	function changefaren(){
		if ($("#faren_type_value").val()== '01'){
			$("#profit_tax_money").addClass('required');
		}else{
			$("#profit_tax_money").removeClass('required');
		}
	}
	function checkrownum(){
		var maxLinNum=$("#operating_conditions").find("tr").length+1;
		$('#row_number').val(maxLinNum);
	}
</script>
